<h2>Language selector</h2>
<table cellpadding="0" cellspacing="0" width="100%">
    <thead>
        <tr>
            <th>Language</th>
            <th>Option</th>
            <!-- <th>Activated</th> -->
            <!-- <th>Published</th> -->
        </tr>
    </thead>
    <tbody>
        <?php
            if (!empty($languages)) {
                foreach ($languages as $key => $language) {
        ?>
                    <tr>
                        <td><a href="<?php echo site_url() . "/custom/restaurant/carte/" . $language['language_id'] ?>"><?php echo $language['name'] ?></a></td>
                        <!-- <td><input type="checkbox" name="" value="ON" /></td>  -->
                        <!-- <td><input type="checkbox" name="" value="ON" /></td>  -->
                        <?php
                            if ($language['language_id'] != 1) {
                        ?>
                                <td><a href="<?php echo site_url() . "/language/language_controller/delete/" . $language['language_id'] ?>">delete</a></td>
                        <?php
                            } else {
                        ?>
                                <td></td>
                        <?php
                            }
                        ?>
                    </tr>
        <?php
                }
            }
        ?>
                    

                    
    </tbody>
</table>